package org.exhibitj.defect;

public class Defense {
	@SuppressWarnings("serial")
	public static class ArgumentCannotBeNullDefense extends Defect {

		public ArgumentCannotBeNullDefense(String message) {
			super(message);
		}

	}

	public static void notNull(Object obj) {
		if (obj == null) {
			throw new ArgumentCannotBeNullDefense("Expected object to not be null, but was null!");
		}
	}
}
